package com.example.pwj.ffstudy.ui.zhihu.contract;

import com.example.pwj.ffstudy.base.BasePresenter;
import com.example.pwj.ffstudy.base.BaseView;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyComment;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyCommentSection;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by pwj on 2017/8/28.
 */

public interface ZNewsCommContract {
    interface Model {
        Observable<List<ZDailyComment>> getZDailyLongComment(int id);

        Observable<List<ZDailyComment>> getZDailyShortComment(int id);
    }

    interface View extends BaseView {
        void onLoadZNewsLongComment(List<ZDailyCommentSection> sections);

        void onLoadZNewsShortComment(List<ZDailyCommentSection> sections);

        void onLoadMoreZNewsComment(List<ZDailyCommentSection> sections);

        void onError();

        void onComplete();
    }

    interface Presenter extends BasePresenter<View> {
        //        void loadZNewsComment(int id,String long_header,String short_header);
        void loadZNewsLongComment(int id, String long_header, String short_header);

        void loadZNewsShortComment(int id, boolean isLoadMore);
    }
}
